package com.warm.androidstudy.utils;

import android.text.TextUtils;

import com.bumptech.glide.load.model.GlideUrl;

public class MyGlideUrl extends GlideUrl {

    private String mUrl;

    public MyGlideUrl(String url) {
        super(url);
        mUrl = url;
    }

    @Override
    public String getCacheKey() {
        if (!TextUtils.isEmpty(mUrl) && mUrl.contains("?")) {
//            String preText = CommonMethod.getPreText("?", mUrl);
            String preText = "?";
            return preText;
        }
        return mUrl;
    }
}
